<template>
  <div class="home" style="width: 100%;height:100%;">
    <Dingbu :nameTitle="PageName"></Dingbu>
    <div style="overflow:hidden;">
        <Button class="addBtn" style="float:right;margin-right:20px;font-size:16px;" @click="goBack">返回</Button>        
    </div>
    <div class="content">
        <Table size="large" :columns="columns" :data="tabledata"></Table>
    </div>
  </div>
</template>
<script>
import Dingbu from "../header/dingbu.vue";
import { mapGetters, mapMutations, mapActions } from "vuex";
export default {
  data() {
    return {
      PageName: "消费明细",

      columns: [
          {
            title: 'ID',
            key: 'recom_id',
            align: 'center',
          },
          {
            title: '商铺名称',
            key: 'shop_name',
            align: 'center'
          },
          {
            title: '订单金额(￥)',
            key: 'total_price',
            align: 'center'
          },
          {
            title: '订单时间',
            key: 'created_at',
            align: 'center'
          },
          {
            title: '来源',
            key: 'recom_name',
            align: 'center',
          },
      ],
      tabledata: [],
    };
  },
  mounted() {
  },
  components: {
    Dingbu
  },
  methods: {
    goBack() {
      window.history.back();
    }
  }
};
</script>
<style lang="scss" scoped>
@import "../../css/common.scss";
.content {
  width:100%;
  margin: 20px auto;
}
</style>

